package mason.dp.abstractfactory.factory;

import mason.dp.abstractfactory.Component.Battery;
import mason.dp.abstractfactory.Component.BatteryForMac;
import mason.dp.abstractfactory.Component.CPU;
import mason.dp.abstractfactory.Component.CpuForMac;
import mason.dp.abstractfactory.Component.RAM;
import mason.dp.abstractfactory.Component.RamForMac;

/**
 * Mac电脑零件工厂
 *
 * @author MasonAir
 *
 */
public class MacComponentFactory implements ComputerComponentFactory {

	@Override
	public CPU createCpu() {
		return new CpuForMac();
	}

	@Override
	public RAM createRam() {
		return new RamForMac();
	}

	@Override
	public Battery createBattery() {
		return new BatteryForMac();
	}

}
